package cn.edu.sgu.www.mhxysy.entity.repository;

import cn.edu.sgu.www.mhxysy.consts.IdentifierPrefixes;
import cn.edu.sgu.www.mhxysy.util.StringUtils;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 仓库物品
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("repository_prop")
public class RepositoryProp implements Serializable {
    private static final long serialVersionUID = 18L;

    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "ID")
    private String id;

    /**
     * 道具ID
     */
    @ApiModelProperty(value = "道具ID")
    private String propId;

    /**
     * 仓库格子ID
     */
    @ApiModelProperty(value = "仓库格子ID")
    private String gridId;

    public String uuid() {
        return IdentifierPrefixes.PREFIX_CKDJ + StringUtils.uuid();
    }

}